package com.qiwx.pigeon.data;

/**
 * @description
 * @Author qiwx
 * @Date 2020/8/24 9:57 PM
 * 出栏配置
 **/
public enum EnumGetOut {
    PIGEON_OLD(1, "老鸽"),
    PIGEON_LEVEL1(2, "一级乳鸽"),
    PIGEON_LEVEL2(3, "二级乳鸽"),
    PIGEON_TONGZHUA(4, "统抓鸽");

    int type;
    String name;

    private EnumGetOut(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getTypeDes(int type) {
        if (type == PIGEON_OLD.getType()) {
            return PIGEON_OLD.getName();
        } else if (type == PIGEON_LEVEL1.getType()) {
            return PIGEON_LEVEL1.getName();
        } else if (type == PIGEON_LEVEL2.getType()) {
            return PIGEON_LEVEL2.getName();
        } else if (type == PIGEON_TONGZHUA.getType()) {
            return PIGEON_TONGZHUA.getName();
        }
        return PIGEON_OLD.getName();

    }
}
